home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / gfx / nsIDeviceContextSpecPS.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  186 lines

  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  27.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #ifndef nsIDeviceContextSpecPS_h___
  40. #define nsIDeviceContextSpecPS_h___
  41.  
  42. #include "nsISupports.h"
  43.  
  44. /* dummy printer name for the gfx/src/ps driver */
  45. #define NS_POSTSCRIPT_DRIVER_NAME "PostScript/"
  46. /* strlen(NS_POSTSCRIPT_DRIVER_NAME)*/
  47. #define NS_POSTSCRIPT_DRIVER_NAME_LEN (11) 
  48.  
  49. #define NS_IDEVICE_CONTEXT_SPEC_PS_IID { 0xa4ef8910, 0xdd65, 0x11d2, { 0xa8, 0x32, 0x0, 0x10, 0x5a, 0x18, 0x34, 0x19 } }
  50.  
  51. class nsIDeviceContextSpecPS : public nsISupports
  52. {
  53.  
  54. public:
  55.    NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEVICE_CONTEXT_SPEC_PS_IID)
  56.  
  57.   /*
  58.    * If PR_TRUE, print to printer  
  59.    * @update 
  60.    * @param aToPrinter --  
  61.    * @return 
  62.    **/
  63.    NS_IMETHOD GetToPrinter( PRBool &aToPrinter ) = 0; 
  64.  
  65.   /*
  66.    * If PR_TRUE, print to printer  
  67.    * @update 
  68.    * @param aIsPPreview -- Set to PR_TRUE for print preview, PR_FALSE otherwise.
  69.    * @return 
  70.    **/
  71.    NS_IMETHOD GetIsPrintPreview( PRBool &aIsPPreview ) = 0; 
  72.  
  73.   /*
  74.    * If PR_TRUE, first page first 
  75.    * @update 
  76.    * @param aFpf -- 
  77.    * @return 
  78.    **/
  79.    NS_IMETHOD GetFirstPageFirst (  PRBool &aFpf ) = 0;     
  80.  
  81.   /*
  82.    * If PR_TRUE, print grayscale 
  83.    * @update 
  84.    * @param aGrayscale --
  85.    * @return 
  86.    **/
  87.    NS_IMETHOD GetGrayscale(  PRBool &aGrayscale ) = 0;   
  88.  
  89.   /*
  90.    * Top margin 
  91.    * @update 
  92.    * @param aValue --
  93.    * @return 
  94.    **/
  95.    NS_IMETHOD GetTopMargin (  float &aValue ) = 0; 
  96.  
  97.   /*
  98.    * Bottom margin 
  99.    * @update 
  100.    * @param aValue --
  101.    * @return 
  102.    **/
  103.    NS_IMETHOD GetBottomMargin (  float &aValue ) = 0; 
  104.  
  105.   /*
  106.    * Left margin 
  107.    * @update 
  108.    * @param aValue --
  109.    * @return 
  110.    **/
  111.    NS_IMETHOD GetLeftMargin (  float &aValue ) = 0; 
  112.  
  113.   /*
  114.    * Right margin 
  115.    * @update 
  116.    * @param aValue --
  117.    * @return 
  118.    **/
  119.    NS_IMETHOD GetRightMargin (  float &aValue ) = 0; 
  120.  
  121.   /*
  122.    * Print command e.g., lpr 
  123.    * @update 
  124.    * @param aCommand --
  125.    * @return 
  126.    **/
  127.    NS_IMETHOD GetCommand ( const char **aCommand ) = 0;   
  128.  
  129.   /*
  130.    * Printer name e.g., myprinter
  131.    * @update 
  132.    * @param aPrinter --
  133.    * @return 
  134.    **/
  135.    NS_IMETHOD GetPrinterName ( const char **aPrinter ) = 0;   
  136.  
  137.   /*
  138.    * If PR_TRUE, user chose Landscape
  139.    * @update 
  140.    * @param aLandscape
  141.    * @return 
  142.    **/
  143.    NS_IMETHOD GetLandscape ( PRBool &aLandscape ) = 0;   
  144.  
  145.   /*
  146.    * If toPrinter = PR_FALSE, dest file 
  147.    * @update 
  148.    * @param aPath --
  149.    * @return 
  150.    **/
  151.    NS_IMETHOD GetPath ( const char **aPath ) = 0;    
  152.  
  153.   /*
  154.    * If PR_TRUE, user cancelled 
  155.    * @update 
  156.    * @param aCancel -- 
  157.    * @return 
  158.    **/
  159.    NS_IMETHOD GetUserCancelled(  PRBool &aCancel ) = 0;      
  160.  
  161.   /*
  162.    * Paper name e.g., "din-a4" or "manual/din-a4"
  163.    * @update 
  164.    * @param aPaperName --
  165.    * @return 
  166.    **/
  167.    NS_IMETHOD GetPaperName ( const char **aPaperName ) = 0;
  168.  
  169.    /*
  170.     * Returns W/H in Twips from Paper Size H/W
  171.     */
  172.    NS_IMETHOD GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight) = 0;
  173.  
  174.    /*
  175.     * Return number of copies to print
  176.     * @update
  177.     * @param aCopies
  178.     * @return
  179.     */
  180.    NS_IMETHOD GetCopies ( int &aCopies ) = 0;
  181.  
  182. };
  183.  
  184. #endif /* !nsIDeviceContextSpecPS_h___ */
  185.  
  186.